<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Details' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="Newsletter Name">
					<?php echo JText::_( 'Newsletter Name' ); ?>:
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="name" id="name" size="32" maxlength="250" value="<?php echo $this->newsletterRecord->name;?>" />
			</td>
		</tr>
    <tr>
	</table>
	</fieldset>
  <fieldset class="adminform">
		<legend><?php echo JText::_( 'Helpful Hints' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
        [unsubscribe link]
			</td>
			<td>
				Inserted anywhere in your email will automatically generate a link for a user to unsubscribe.
		</tr>
    <tr>
	</table>
	</fieldset>
  	<table class="adminform">
				<tr>
					<td>
						<?php
            $editor		=& JFactory::getEditor();
						// parameters : areaname, content, width, height, cols, rows
						echo $editor->display( 'body',  $this->newsletterRecord->body , '100%', '550', '75', '20' ) ;
						?>
					</td>
				</tr>
				</table>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_spsNewsletter" />
<input type="hidden" name="id" value="<?php echo $this->newsletterRecord->id; ?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="controller" value="newsletter" />
</form>
